package com.alibaba.citrus.ots.platform.enhance.functions.diff.sap.template;

import com.alibaba.citrus.ots.platform.enhance.functions.diff.common.constant.SalesOrderLineDiffStandardFieldDict;

import java.util.HashSet;
import java.util.Set;

/**
 * @author: hanguo
 * @create: 2022/01/23
 * @Description sap015->DB销售子单标准字典
 */
public class SalesOrderLineSap015StandardTemplate {

    /**
     * set
     */
    private static Set<String> set = new HashSet<>();

    /**
     * 忽略字段集合
     */
    private static Set<String> ignoreSet = new HashSet<>();


    static {

        //标准模板
        set.add(SalesOrderLineDiffStandardFieldDict.SERIAL_NUMBER.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.SAP_SALES_ORDER_LINE_ID.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.ITEM_ID.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.ITEM_QUANTITY.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.SALE_UNIT.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.UNIT_PRICE.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.SPECIAL_OFFER_PRICE.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.SUB_TOTAL_AMOUNT.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.RETURN_FLAG.getFieldCode());
        set.add(SalesOrderLineDiffStandardFieldDict.REFUSE_REASON_CODE.getFieldCode());
        //set.add(SalesOrderLineDiffStandardFieldDict.REFUSE_REASON_NAME.getFieldCode());


        //忽略列表
        //###############################################################//
        ignoreSet.add(SalesOrderLineDiffStandardFieldDict.RETURN_FLAG.getFieldCode());
        ignoreSet.add(SalesOrderLineDiffStandardFieldDict.REFUSE_REASON_CODE.getFieldCode());

    }


    public static Set<String> obtainTemplateFieldSet() {
        return set;
    }

    public static Set<String> obtainIgnoreFieldSet() {
        return ignoreSet;
    }


}
